package com.robot.member.pojo.client;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * store实体类
 *
 * @author
 */
@Entity
@Table(name = "store")
public class Store implements Serializable {
    /**
     * 店铺id
     */
    @Id
    private String id;
    /**
     * 店铺名字
     */
    private String storeName;
    /**
     * 公司id
     */
    private String companyId;
    /**
     * 代理商id
     */
    private String agentId;
    /**
     * 会员id
     */
    private String memberId;
    /**
     * 联系人
     */
    private String contact;
    /**
     * 电话
     */
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 密码
     */
    private String password;
    /**
     * 营业执照号码
     */
    private String businessLicense;
    /**
     * 营业执照照片
     */
    private String businessLicenseImg;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 行业id
     */
    private String industryId;
    /**
     * 行业许可证编号
     */
    private String industryLicense;
    /**
     * 行业许可证图片
     */
    private String industryLicenseImg;
    /**
     * 法人真实姓名
     */
    private String realName;
    /**
     * 实名制状态 0-未实名 1-已实名 2-实名失败
     */
    private String realNameStatus;
    /**
     * 法人身份证号码
     */
    private String idCard;
    /**
     * 法人身份证国徽页
     */
    private String idCardFront;
    /**
     * 法人身份证个人页
     */
    private String idCardBack;
    /**
     * 省份
     */
    private String province;
    /**
     * 省份id
     */
    private String provinceId;
    /**
     * 城市
     */
    private String city;
    /**
     * 城市id
     */
    private String cityId;
    /**
     * 区县
     */
    private String area;
    /**
     * 区县id
     */
    private String areaId;
    /**
     * 详细地址
     */
    private String address;
    /**
     * 微信open_id
     */
    private String openId;
    /**
     * 微信union_id
     */
    private String unionId;
    /**
     * 封面图,门头照
     */
    private String coverImage;
    /**
     * 店内照
     */
    private String images;
    /**
     * json vip1=会员折扣率 vip2=会长折扣率
     */
    private String rate;
    /**
     * 营业开始时间 示例：08:30:00
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime businessHoursStart;
    /**
     * 营业结束时间 示例：23:30:00
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime businessHoursEnd;
    /**
     * 推荐人id
     */
    private String recommendId;
    /**
     * 评分 店铺所有订单的评分的均值
     */
    private Double score;
    /**
     * 店铺推荐语
     */
    private String recommendation;
    /**
     * 库存
     */
    private Double stock;
    /**
     * 预警值
     */
    private Double earlyWarning;
    /**
     * 折上折 没有折上折的 设为1，八五折为0.85
     */
    private Double foldUp;
    /**
     * 商户类型 0-充送 1-折扣
     */
    private String type;
    /**
     * 授信额度
     */
    private Double credit;
    /**
     * 开户行名称
     */
    private String bankName;
    /**
     * 银行账号
     */
    private String bankAccount;
    /**
     * 户名
     */
    private String accountName;
    /**
     * 账户类型 1-对公 0-对私
     */
    private String accountType;
    /**
     * 包装费
     */
    private Double packing;
    /**
     * 配送费
     */
    private Double freight;
    /**
     * 0-禁用 1-启用
     */
    private String status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
    /**
     * 最后更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getAgentId() {
        return agentId;
    }

    public void setAgentId(String agentId) {
        this.agentId = agentId;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getBusinessLicenseImg() {
        return businessLicenseImg;
    }

    public void setBusinessLicenseImg(String businessLicenseImg) {
        this.businessLicenseImg = businessLicenseImg;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getIndustryId() {
        return industryId;
    }

    public void setIndustryId(String industryId) {
        this.industryId = industryId;
    }

    public String getIndustryLicense() {
        return industryLicense;
    }

    public void setIndustryLicense(String industryLicense) {
        this.industryLicense = industryLicense;
    }

    public String getIndustryLicenseImg() {
        return industryLicenseImg;
    }

    public void setIndustryLicenseImg(String industryLicenseImg) {
        this.industryLicenseImg = industryLicenseImg;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRealNameStatus() {
        return realNameStatus;
    }

    public void setRealNameStatus(String realNameStatus) {
        this.realNameStatus = realNameStatus;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getIdCardFront() {
        return idCardFront;
    }

    public void setIdCardFront(String idCardFront) {
        this.idCardFront = idCardFront;
    }

    public String getIdCardBack() {
        return idCardBack;
    }

    public void setIdCardBack(String idCardBack) {
        this.idCardBack = idCardBack;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public LocalTime getBusinessHoursStart() {
        return businessHoursStart;
    }

    public void setBusinessHoursStart(LocalTime businessHoursStart) {
        this.businessHoursStart = businessHoursStart;
    }

    public LocalTime getBusinessHoursEnd() {
        return businessHoursEnd;
    }

    public void setBusinessHoursEnd(LocalTime businessHoursEnd) {
        this.businessHoursEnd = businessHoursEnd;
    }

    public String getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(String recommendId) {
        this.recommendId = recommendId;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public String getRecommendation() {
        return recommendation;
    }

    public void setRecommendation(String recommendation) {
        this.recommendation = recommendation;
    }

    public Double getStock() {
        return stock;
    }

    public void setStock(Double stock) {
        this.stock = stock;
    }

    public Double getEarlyWarning() {
        return earlyWarning;
    }

    public void setEarlyWarning(Double earlyWarning) {
        this.earlyWarning = earlyWarning;
    }

    public Double getFoldUp() {
        return foldUp;
    }

    public void setFoldUp(Double foldUp) {
        this.foldUp = foldUp;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getCredit() {
        return credit;
    }

    public void setCredit(Double credit) {
        this.credit = credit;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public Double getPacking() {
        return packing;
    }

    public void setPacking(Double packing) {
        this.packing = packing;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public LocalDateTime getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(LocalDateTime deletedAt) {
        this.deletedAt = deletedAt;
    }

    @Override
    public String toString() {
        return "Store{" +
                "id='" + id + '\'' +
                ", storeName='" + storeName + '\'' +
                ", companyId='" + companyId + '\'' +
                ", agentId='" + agentId + '\'' +
                ", memberId='" + memberId + '\'' +
                ", contact='" + contact + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", businessLicense='" + businessLicense + '\'' +
                ", businessLicenseImg='" + businessLicenseImg + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", industryId='" + industryId + '\'' +
                ", industryLicense='" + industryLicense + '\'' +
                ", industryLicenseImg='" + industryLicenseImg + '\'' +
                ", realName='" + realName + '\'' +
                ", realNameStatus='" + realNameStatus + '\'' +
                ", idCard='" + idCard + '\'' +
                ", idCardFront='" + idCardFront + '\'' +
                ", idCardBack='" + idCardBack + '\'' +
                ", province='" + province + '\'' +
                ", provinceId='" + provinceId + '\'' +
                ", city='" + city + '\'' +
                ", cityId='" + cityId + '\'' +
                ", area='" + area + '\'' +
                ", areaId='" + areaId + '\'' +
                ", address='" + address + '\'' +
                ", openId='" + openId + '\'' +
                ", unionId='" + unionId + '\'' +
                ", coverImage='" + coverImage + '\'' +
                ", images='" + images + '\'' +
                ", rate='" + rate + '\'' +
                ", businessHoursStart=" + businessHoursStart +
                ", businessHoursEnd=" + businessHoursEnd +
                ", recommendId='" + recommendId + '\'' +
                ", score=" + score +
                ", recommendation='" + recommendation + '\'' +
                ", stock=" + stock +
                ", earlyWarning=" + earlyWarning +
                ", foldUp=" + foldUp +
                ", type='" + type + '\'' +
                ", credit=" + credit +
                ", bankName='" + bankName + '\'' +
                ", bankAccount='" + bankAccount + '\'' +
                ", accountName='" + accountName + '\'' +
                ", accountType='" + accountType + '\'' +
                ", packing=" + packing +
                ", freight=" + freight +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", deletedAt=" + deletedAt +
                '}';
    }
}
